﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UcNews.ascx.cs" Inherits="TheHeGeoCommercial.News.UcNews" %>
<%@ Register TagPrefix="dx" Namespace="DevExpress.Web.ASPxEditors" Assembly="DevExpress.Web.v14.1, Version=14.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>
<%@ Register TagPrefix="dx" Namespace="DevExpress.Web.ASPxDataView" Assembly="DevExpress.Web.v14.1, Version=14.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" %>
<%@ Import Namespace="DevExpress.XtraPrinting.Native" %>
<%--<div class="main-body">
    <div style="padding-left: 220px;width: 850px; vertical-align: central">
  
        <asp:Literal ID="Literal1" runat="server" ></asp:Literal>
    </div>

</div>--%>
<div style="margin: 5px 5px 5px 5px;width: 100%;align-content: center">
    <dx:ASPxDataView ID="dtNews" runat="server" SettingsTableLayout-RowsPerPage="2" SettingsTableLayout-ColumnCount="2" Width="100%" PagerAlign="Center"  ItemSpacing="10px">
<ItemTemplate>
    <table >
        <tr >
            <td colspan="2" >
                
                 <asp:HyperLink id="link1" runat="server" Text='<%# Eval("NewsTitle") %>'
                        NavigateUrl='<%# Eval("DetailUrl") %>' Font-Bold="True" Font-Underline="false"  />
            </td>
        </tr>
        <tr>
            <td >
                
             <asp:ImageButton ID="ImageButton1" runat="server"   PostBackUrl='<%# Eval("DetailUrl") %>' ImageUrl='<%# Eval("AvatarPath") %>' Width="150px" Height="100px" />
  
            </td>
            <td>
                <dx:ASPxLabel ID="lbShortview" runat="server" Text='<%# Eval("ShortView") %>' />
            </td>
        </tr>
    </table>
</ItemTemplate>
<SettingsTableLayout ColumnCount="2" RowsPerPage="2"></SettingsTableLayout>

<PagerSettings ShowNumericButtons="true">
    <AllButton Visible="False" />
    <Summary Visible="false" />
    <PageSizeItemSettings ShowAllItem="true" />
</PagerSettings>
        <Border BorderStyle="None" />
</dx:ASPxDataView></div>
